package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.model.Video;
import org.apache.ibatis.annotations.Param;

public interface VideoMapper extends BaseMapper<Video> {

    /**
     * 根据视频的ID查询详情
     * 包括：视频的id,title,summary,coverImg,price,createTime,point,chapterList
     * 以及所包含的章节chapterList中的每个章节所包含的详细的集episode
     * @param videoId
     * @return
     */
    Video findDetailById(@Param("video_id") int videoId);
}
